home *** CD-ROM | disk | FTP | other *** search
Text File | 1999-05-17 | 1.4 KB | 82 lines | [TEXT/MPS ] |
- #
- # File: Build
- #
- # Contains: Commands to build SBP2 sample code
- #
- # Version: 1.0
- #
- # Copyright: © 1998 by Apple Computer, Inc., all rights reserved.
- #
- # File Ownership:
- #
- # DRI: Eric Anderson
- #
- # Other Contact:
- #
- # Technology: FireWire
- #
- # Writers:
- #
- # (EA) Eric Anderson (ewa)
- #
- # Change History (most recent first):
- #
- # <FW2> 9/20/98 EA Filled in header comments.
- # <FW1> 9/20/98 EA first checked in
- #
-
- set Commands `Directory`::Tools:,"{Commands}"
- export Commands
-
- unset BuildTargets
-
- ################################################################################
- #
- # Parse parameters.
- #
-
- for parm in {"Parameters"}
-
- # full build option
- if "{parm}" =~ /-e/
- set DoFullBuild 1
- export DoFullBuild
- continue
- end
-
- # default is a build target
- set BuildTargets "{BuildTargets} {parm}"
-
- end
-
- ################################################################################
- #
- # Build all targets.
- #
-
- for BuildTarget in {BuildTargets}
-
- if {DoFullBuild}
- Echo "# `Date -t` ----- Full Build of {BuildTarget}."
- else
- Echo "# `Date -t` ----- Build of {BuildTarget}."
- end
- Echo "# `Date -t` ----- Analyzing dependencies."
-
- Begin
- Echo "Set Echo 1"
- if {DoFullBuild}
- make -e -f MakeFile "{BuildTarget}"
- else
- make -f MakeFile "{BuildTarget}"
- end
- End > "{BuildTarget}".makeout
-
- Echo "# `Date -t` ----- Executing build commands."
- "{BuildTarget}".makeout
- delete -y "{BuildTarget}".makeout
-
- Echo "# `Date -t` ----- Done."
-
- end
-